package com.sampleCodesJava.day5Lists;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.Collections;
import java.util.Comparator;

public class List {
	public static void main(String[] args) {


		Employee emp1 = new Employee();
		Employee emp2 = new Employee();
		Employee emp3 = new Employee();

		ArrayList<Employee> employeeList = new ArrayList<Employee>();

		ArrayList u2 = new ArrayList<String>();

		u2.add("I am");
		u2.add("going");
		u2.add("to eat");
		u2.add("A");
		u2.add("B");
		u2.add("a");

		Collections.sort(u2);
		Collections.shuffle(u2);
		System.out.println(u2);

	}

	public class SortIgnoreCase implements Comparator<String> {
		public int compare(String o1, String o2) {
			String s1 = o1;
			String s2 = o2;
			return s1.toLowerCase().compareTo(s2.toLowerCase());
		}
	}
}
